<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <title></title>
        <link rel="stylesheet" rev="stylesheet" href="/css/style.css" type="text/css" media="all" />
    </head>
    <body class="ContentBody">

        <div class="MainDiv">
            <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
                <tr>
                    <td width="100%">
                        <fieldset style="height:100%;">
                            <legend>密码复杂度说明</legend>
                            <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                <tr>
                                    <td>&nbsp;&nbsp;复杂度类型:英文+数字，英文+特殊字符，数字+特殊字符，英文+数字+特殊字符，特殊字符为 ?[#@*_&.]<p>
                                        &nbsp;&nbsp;密码长度不可少于8位，最大20位,密码复杂度设置为空时，默认使用英文+数字类型<p>
                                        &nbsp;&nbsp;密码复杂度修改成功后，修改密码与添加用户时的密码规则将按照此规则设置
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </fieldset></td>
                </tr>
                <tr id="getPwd">
                    <td class="CPanel">
                        <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                            <tr>
                                <td width="100%">
                                    <fieldset style="height:100%;">
                                        <legend>当前密码复杂度</legend>
                                        <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                            <tr>
                                                <td nowrap align="right" width="15%">密码组合类型：</td>
                                                <td width="35%">{{if $complexity.0.pwdTxt}}{{$complexity.0.pwdTxt}}{{else}}默认为英文+数字{{/if}}</td>
                                            </tr>
                                            <tr>
                                                <td nowrap align="right" width="15%">密码组合长度：</td>
                                                <td width="35%">{{if $complexity.0.pwdLength}}{{$complexity.0.pwdLength}} 位{{else}}默认长度为8位{{/if}}</td>
                                            </tr>
                                            <br>
                                        </table>
                                        <br />
                                    </fieldset></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <form action="{{$http_url}}/system/setPwd/" method="post"  name="form">
                <tr id="setPwd" style="display: none;">
                    <td class="CPanel">
                        <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                            <tr>
                                <td width="100%">
                                    <fieldset style="height:100%;">
                                        <legend>重新设置密码复杂度</legend>
                                        <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                            <tr>
                                                <td nowrap align="right" width="15%">密码组合类型：</td>
                                                <td width="35%">
                                                    <select name="pwdType">
                                                        <option value="" >请选择密码组合类型</option>
                                                        <option value="1">英文+数字</option>
                                                        <option value="2">英文+特殊字符</option>
                                                        <option value="3">数字+特殊字符</option>
                                                        <option value="4">英文+数字+特殊字符</option>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap align="right" width="15%">密码组合长度：</td>
                                                <td width="35%"><input name='pwdlength'  type="text" class="text" style="width:80px"/> 位</td>
                                            </tr>
                                            <br>
                                        </table>
                                        <br />
                                    </fieldset></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="setPwdButton" style="display: none;">
                    <td colspan="2" align="center" height="50px">
                        <input  type="submit"  value="提交" class="button" />
                    </td>
                </tr>
                <input type="hidden"  name="ComplexityId" value="{{$complexity.0.id}}">
                </form>
                <tr id="getPwdButton">
                    <td colspan="2" align="center" height="50px">
                        <input id="button" type="button" value="重新设置密码复杂度" class="button" />
                    </td>
                </tr>
            </table>
        </div>
        <script type="text/javascript" src="{{$http_url}}/js/jquery.min.js"></script>
        <script type="text/javascript" src="{{$http_url}}/js/authentication.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#button").click(function(){
                   $("#setPwd").show();
                   $("#setPwdButton").show();
                   $("#getPwdButton").hide();
                });
            })
        </script>
    </body>
</html>
